import request from '@/utils/request'

//统一字典下拉框查询
export function adminDict(params) {
  return request({
    url: `common/v1/adminDict`,
    method: 'get',
    params
  })
}

// 权益卡转赠配置列表
export function equityConfigList(query) {
  return request({
    url: '/merchant/equity/card/donation/config/v1/list',
    method: 'get',
    params: query
  })
}

//转赠管理
export function setDonation(data) {
  return request({
    url: `/merchant/equity/card/donation/config/v1/setDonation`,
    method: 'put',
    data
  })
}
//手续费配置
export function setFee(data) {
  return request({
    url: `/merchant/equity/card/donation/config/v1/setFee`,
    method: 'put',
    data
  })
}
//权益卡转赠配置详情
export function configDetail(id) {
  return request({
    url: '/merchant/equity/card/donation/config/v1/detail/' + id,
    method: 'get'
  })
}

// 中台-权益卡转赠明细列表
export function equityRecordList(params) {
  return request({
    url: '/equity/card/donation/record/list',
    method: 'get',
    params
  })
}
